package com.heartunderblade.rpc;

import com.heartunderblade.rpc.Registry.LocalRegistry;
import com.heartunderblade.rpc.server.NettyHttpServer;
import com.heartunderblade.rpc.service.HttpServer;
import com.heartunderblade.rpc.service.UserService;
import com.heartunderblade.rpc.service.impl.UserServiceImpl;

public class EasyProviderSample {
    public static void main(String[] args) {
        // 提供服务
        LocalRegistry.register(UserService.class.getName(), UserServiceImpl.class);

        // 启动web服务
        HttpServer httpServer = new NettyHttpServer();
        httpServer.doStart(8090);
    }
} 